package com.example.ercmssystem2.repository;

import com.example.ercmssystem2.entity.ResourceType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface ResourceTypeRepository extends JpaRepository<ResourceType, Long> {
    
    Optional<ResourceType> findByName(String name);
    
    boolean existsByName(String name);
} 